﻿using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace RuoVea.Service
{
    public interface ISysMenuService
    {
        Task AddMenu(AddMenuInput input);
        //Task<List<AntDesignTreeNode>> ChangeAppMenu(ChangeAppMenuInput input);
        Task DeleteMenu(DeleteMenuInput input);
        Task<List<AntDesignTreeNode>> GetLoginMenusAntDesign(long userId, string appCode);
        Task<List<string>> GetLoginPermissionList(long userId);
        Task<dynamic> GetMenu(QueryMenuInput input);
        Task<dynamic> GetMenuList(MenuInput input);
        Task<dynamic> GetMenuTree(MenuInput input);
        Task<List<string>> GetUserMenuAppCodeList(long userId);
        Task<bool> HasMenu(string appCode);
        Task<dynamic> TreeForGrant(MenuInput input);
        Task UpdateMenu(UpdateMenuInput input);
        Task<List<string>> GetAllPermission();
    }
}